#include "RendererLib/GlobalBase.h"

#include "RendererLib/TextureModule/TexManager.h"
#include "Renderer.h"

int main(int argc,char ** argv )
{
	glutInit(&argc, argv);
	if(0 == SDL_Init(SDL_INIT_VIDEO ))
		GlobalLogger::LOG_INFO("SDL_INIT_VIDEO is Ok");

	if(0 == SDL_Init(SDL_INIT_TIMER ))
		GlobalLogger::LOG_INFO("SDL_INIT_TIMER is Ok");
	SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 1 ); 

	SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 );
	SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 );
	SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 );
	SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
	SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );

	Renderer renderer;
	renderer.Loop();
	return 0;
}